package datatypes.film;

import java.util.ArrayList;
import java.util.List;

public class filmDirectors {
	List<filmDirector> film_directors;

	public filmDirectors() {
		this.film_directors = new ArrayList<filmDirector>();
	}

	public filmDirectors(filmDirector film_actor) {
		this.film_directors = new ArrayList<filmDirector>();
		this.film_directors.add(film_actor);
	}

	public filmDirectors(List<filmDirector> film_directors) {
		this.film_directors = new ArrayList<filmDirector>();
		this.film_directors.addAll(film_directors);
	}

	public void addDirector(filmDirector film_director) {
		this.film_directors.add(film_director);
	}
	
	public List<filmDirector> getfilmDirectors(){
		return this.film_directors;
	}
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		int directorIndex = 1;
		for (filmDirector film_director : film_directors) {
			sb.append("director <" + directorIndex++ + ">: \n");
			sb.append(film_director.toString() + "\n");
		}

		return sb.toString();
	}

 
}
